using System;

namespace Miao
{
    public class WaitUntilTrue
    {
        internal Func<bool> function;

        /// <summary>
        /// 等待直到 <paramref name="function"/> 返回 true
        /// </summary>
        public WaitUntilTrue(Func<bool> function)
        {
            this.function = function;
        }
    }
}